package cn.strive.eams.application.mapper;

import cn.strive.eams.application.pojo.dto.ApplicationQuery;
import cn.strive.eams.application.pojo.entity.Application;
import cn.strive.eams.application.pojo.vo.ApplicationVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ApplicationMapper {
    List<ApplicationVO> selectAll(ApplicationQuery applicationQuery);

    int existsByApplyNumber(String applyNumber);

    void insert(Application application);

    void update(Application application);

    List<ApplicationVO> selectById(Long id);
}
